package com.zeldu.course.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zeldu.course.pojo.Course;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CourseMapper extends BaseMapper<Course>{
    List<Course> queryStudentAll(Long studentId);
    Course detail(int id);
    int join(Course course);
    int exist(Course course);
    int available(int courseId);

    List<Course> queryTeacherAll(Long teacherId);
    List<Course> showClass(Long teacherId);
    int create(Course course);

    List<Course> queryStudentsId(int courseId);  //根据课程id查学生id
}
